package com.xinbochuang.machine.admin.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinbochuang.machine.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.UUID;

/**
 * 设备
 *
 * @author 黄晓鹏
 * @date 2020-09-10 15:57
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("EQUIPMENT")
public class EquipmentVo extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 设备id
     */
    @TableId("UUID")
    private String uuid;

    /**
     * 设备名称
     */
    @TableField("EQU_NAME")
    private String name;

    /**
     * 设备u位
     */
    @TableField("EQU_HEIGHT")
    private String equHeight;

    /**
     * 层级标识
     */
    @TableField(exist = false)
    private String type = "equ";

    /**
     * planId
     */
    @TableField(exist = false)
    private String planId;

    /**
     * rowId
     */
    @TableField(exist = false)
    private String rowId = UUID.randomUUID().toString();

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME", exist = false)
    private String createTime;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY", exist = false)
    private String createBy;

    /**
     * 修改人
     */
    @TableField(value = "UPDATE_BY", exist = false)
    private String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_Time", exist = false)
    private String updateTime;

    /**
     * 简介
     */
    @TableField(value = "REMARK", exist = false)
    private String remark;
}
